
public class StringBufferDemo2 {
	public static void main(String[] args) {
		StringBuffer sv=new StringBuffer("Welcome to zhbit");
		int i1=sv.indexOf(" ");
		int i2=sv.lastIndexOf(" ");
		sv.delete(i1+1,i2);
		System.out.println(sv);
		sv.deleteCharAt(5);
		System.out.println(sv);
		sv.replace(3, 6, "come");
		System.out.println(sv);
	}

}
